﻿using System;
using System.Collections.Generic;
using System.Text;
using Entity;
using ECommerce.Library.DataStructure;

namespace AutoGear.BLL
{
    public class MultipleShipAdd
    {
        private Address _shippAdd;
        public Address ShippAdd
        {
            get { return _shippAdd; }
            set { _shippAdd = value; }
        }

        private List<Additional> _productAdditional;
        public List<Additional> ProductAdditional
        {

            get { return _productAdditional; }
            set { _productAdditional = value; }
        }

        private bool _isResidentiall;
        public bool IsResidential
        {
            get { return _isResidentiall; }
            set { _isResidentiall = value; }
        }

        private string _shippingMethod;
        public string ShippingMethod 
        {
            get { return _shippingMethod; }
            set { _shippingMethod = value; }
        }
        private double _shippingCost;
        public double ShippingCost
        {
            get { return _shippingCost; }
            set { _shippingCost = value; }
        }
        private string _gIftCardMessage;
        public string GIftCardMessage 
        {
            get { return _gIftCardMessage; }
            set { _gIftCardMessage = value; }
        }
        private string _requestShippingDate;
        public string RequestShippingDate
        {
            get { return _requestShippingDate; }
            set { _requestShippingDate = value; }
        }
        private string _addressBookId;
        public string AddressBookId
        {
            get { return _addressBookId; }
            set { _addressBookId = value; }
        }
        public MultipleShipAdd() { }

        public MultipleShipAdd(Address ShippAdd, Additional ProductAdditional, bool IsResidential, string ShippingMethod, string GIftCardMessage,string RequestShippingDate,string AddressBookId,  double ShippingCost)
        {
            this._shippAdd = ShippAdd;
            this._isResidentiall = IsResidential;
            this._shippingMethod = ShippingMethod;
            this._gIftCardMessage = GIftCardMessage;
            this._requestShippingDate = RequestShippingDate;
            this._addressBookId = AddressBookId;
            this._shippingCost = ShippingCost;
            if(_productAdditional==null)
                _productAdditional=new List<Additional>();
            this._productAdditional.Add(ProductAdditional);
        }
       
    }
}
